package site.cyningxu.utils;

/**
 * Created by xuxingcan on 17-7-13.
 */
public class Log {
    public static void o(String s) {
        System.out.println(s);
    }

    public static void i(String s) {
        System.out.println("[info] " + s);
    }

    public static void i(String s, Object... objects) {
        System.out.println("[info] " + String.format(s, objects));
    }

    public static void d(String s) {
        System.out.println("[debug] " + s);
    }

    public static void e(String s) {
        if ("/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)".equals(s)) {
            return;
        }
        System.out.println("[error] " + s);
    }
}
